//导入request.js
import request from '@/utils/request.js'

//公告列表
export const newsListService = (newsName) =>{
    return request.get('/news/list', {params: {newsName: newsName}})
}

//添加公告
export const newsAddService = (newsModel) =>{
    return request.post('/news/add',newsModel)
}

//删除公告
export const newsDelService = (deleteId) => {
    // console.log(deleteId)
    return request.delete('/news', {params: {id: deleteId}})
}